package com.kt.thread.demo.model;

/**
 * @Description:
 * @Author: kt
 * @CreateTime: 2021/3/13
 */
public class WriteCommand extends AbstractCommand {
    private String data;

    public WriteCommand(String key, String data) {
        super(key);
        this.data = data;
    }

    @Override
    public Command command() {
        return Command.WRITE;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }
}
